import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'
Vue.use(Vuex)

import state from './state'
import actions from './actions'
import mutations from './mutations'
import getters from './getters'
let store = new Vuex.Store({
    state,
    actions,
    mutations,
    getters,
    plugins: [
        persistedState({
            storage: window.sessionStorage
        })
    ]
})
// Vue.prototype.$store = store


export default store